package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Region;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RegionMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Region record);

    Region selectByPrimaryKey(Long id);

    List<Region> selectAll(@Param("state") Integer state);
    int updateByPrimaryKey(Region record);
/*如果传入的是一个数据,且这个数据用来判断,必须要贴一个主机标注名字*/
    List<Region> selectByParentId(@Param("parentId") Long parentId);
    void updateStateById(Region region);
}